//
//  DrawerManager.h
//  QuickCare
//
//  Created by lidabiao on 16/7/13.
//  Copyright © 2016年 lidabiao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MMDrawerController.h"
#import "LeftViewController.h"
#import "MainViewController.h"

#define kDrawerManager [DrawerManager shareManager]

@interface DrawerManager : NSObject

@property (nonatomic, strong) LeftViewController *leftVC;

@property (nonatomic, strong) MainViewController *centerVC;

@property (nonatomic, strong) MMDrawerController *drawerController;

+(instancetype)shareManager;

///  设置根控制器为MMDrawerController
///
///  @param centerViewController 中间控制器
///  @param leftViewController   左边控制器
///  @param completion           回调MMDrawerController
-(void)setUpRootViewControllerWithCenterViewController:(MainViewController *)centerViewController LeftViewController:(LeftViewController *)leftViewController Completion:(void(^)(MMDrawerController *))completion;

///  禁止左边抽屉
-(void)disableLeftDrawer;

///  激活左边抽屉并打开左边抽屉
-(void)enableLeftDrawerAndOpenLeftDrawer;

///  显示新控制器
///
///  @param viewController 新控制器
-(void)presentViewController:(UIViewController *)viewController;
@end

